import HttpClient from './request'
export function postImg(data: any, cancel?: any) { // 发送图片
  let url = `faceContrast?user_id=${data.user_id}`
    return HttpClient.post(url, data.formdata, cancel)
}
export function weakupRC(params: any) { // 唤醒读卡器
  let url = `weakupRC?readcard_id=${params.readcard_id}`
  // ?readcard_id=${params.readcard_id}
  return HttpClient.post(url, params)
}
export function searchUser(params: any, cancel?: any) { // 获取身份证信息
  let url = `searchUser?user_id=${params.user_id}`
  return HttpClient.post(url, params, cancel)
}
export function queryContrastFace(params: any, cancel?: any) {
  let url = `queryContrastFace?user_id=${params.user_id}`
  return HttpClient.post(url, params, cancel)
}
export default {
  postImg, // 传输图片
  weakupRC, // 唤醒读卡器
  searchUser // 获取用户信息
}